package com.example.shopping_mall.http;

import com.example.shopping_mall.bean.LocationData;
import com.example.shopping_mall.bean.MineLocationObject;
import com.example.shopping_mall.bean.MineOrderData;
import com.example.shopping_mall.bean.MineOrderObject;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * @ProjectName: Shopping_Mall
 * @Package: com.example.shopping_mall.http
 * @ClassName: MineOrderRequest
 * @Description: 订单接口
 * @Author: 作者名
 * @CreateDate: 2022-10-31 14:15
 * @UpdateUser: 更新者：
 **/
public interface MineOrderRequest {
    //订单管理
    //http://120.48.12.74:52801/api/v1/orders?memberId=1&pageNum=1&pageSize=5
    @GET("/api/v1/orders/getorderAndItemById/{memberId}?&pageNum=1&pageSize=5")
    Observable<MineOrderObject<MineOrderData>> requestOrder(@Query("memberId") int memberId);

    //地址管理
    //http://120.48.12.74:52801/api/v1/orders/companyAddress/list
    @GET("/api/v1/orders/companyAddress/list")
    Observable<MineLocationObject<LocationData>> requeryLonction();



}
